package com.java.grammer;

/**
 * @author luzhikun
 * @date 2020/12/7- 20:41
 * 100以内的质数
 */
public class ForTest_8_zhishu {
    public static void main(String[] args) {
        for (int i = 2; i < 100; i++) {
            boolean isPrime = true;
            for (int j = 2; j < i; j++) {
                if (i % j == 0) {
                    isPrime = false;
                    break;
                }
            }
            if (isPrime) {
                System.out.print(i + " ");
            }
        }

    }
}
